#! /bin/bash

# インストール済みのDAW情報を吐き出す。

TempInfoPath='/tmp/SteinbergMRExtension/TempInfo'
AllAppsListPath='/tmp/SteinbergMRExtension/TempInfo/AllAppsList.txt'
LoGradeDAWsListPath='/tmp/SteinbergMRExtension/TempInfo/LoGradeDAWsList.txt'

mkdir -p $TempInfoPath

# 全Appのリスト作成。
ls > $AllAppsListPath /Applications

# DAWのリスト作成。
# Cubase Studio 4-9. Cubase Essential 4-9, Cubase AI 4-9 が対象。
grep -i '^Cubase \?Studio \?[4-9].app$\|^Cubase \?Essential \?[4-9].app$\|^Cubase \?AI \?[4-9].app$' $AllAppsListPath > /$LoGradeDAWsListPath

rm -f $AllAppsListPath

exit 0
